Optimal. Leaf size=158 \[ \frac{\sqrt{x} (A b-a B)}{2 a b (a+b x) \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{\sqrt{x} (a B+3 A b)}{4 a^2 b \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{(a+b x) (a B+3 A b) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{4 a^{5/2} b^{3/2} \sqrt{a^2+2 a b x+b^2 x^2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.25202, antiderivative size = 158, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.161 \[ \frac{\sqrt{x} (A b-a B)}{2 a b (a+b x) \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{\sqrt{x} (a B+3 A b)}{4 a^2 b \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{(a+b x) (a B+3 A b) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{4 a^{5/2} b^{3/2} \sqrt{a^2+2 a b x+b^2 x^2}} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/(Sqrt[x]*(a^2 + 2*a*b*x + b^2*x^2)^(3/2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: RecursionError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/(b**2*x**2+2*a*b*x+a**2)**(3/2)/x**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.111332, size = 106, normalized size = 0.67 \[ \frac{\sqrt{a} \sqrt{b} \sqrt{x} \left (a^2 (-B)+a b (5 A+B x)+3 A b^2 x\right )+(a+b x)^2 (a B+3 A b) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{4 a^{5/2} b^{3/2} (a+b x) \sqrt{(a+b x)^2}} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/(Sqrt[x]*(a^2 + 2*a*b*x + b^2*x^2)^(3/2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.013, size = 194, normalized size = 1.2 \[{\frac{bx+a}{4\,{a}^{2}b} \left ( 3\,A\sqrt{ab}{x}^{3/2}{b}^{2}+3\,A\arctan \left ({\frac{b\sqrt{x}}{\sqrt{ab}}} \right ){x}^{2}{b}^{3}+B\sqrt{ab}{x}^{{\frac{3}{2}}}ab+B\arctan \left ({b\sqrt{x}{\frac{1}{\sqrt{ab}}}} \right ){x}^{2}a{b}^{2}+6\,A\arctan \left ({\frac{b\sqrt{x}}{\sqrt{ab}}} \right ) xa{b}^{2}+2\,B\arctan \left ({\frac{b\sqrt{x}}{\sqrt{ab}}} \right ) x{a}^{2}b+5\,A\sqrt{ab}\sqrt{x}ab+3\,A\arctan \left ({\frac{b\sqrt{x}}{\sqrt{ab}}} \right ){a}^{2}b-B\sqrt{ab}\sqrt{x}{a}^{2}+B\arctan \left ({b\sqrt{x}{\frac{1}{\sqrt{ab}}}} \right ){a}^{3} \right ){\frac{1}{\sqrt{ab}}} \left ( \left ( bx+a \right ) ^{2} \right ) ^{-{\frac{3}{2}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/(b^2*x^2+2*a*b*x+a^2)^(3/2)/x^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)^(3/2)*sqrt(x)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.31294, size = 1, normalized size = 0.01 \[ \left [-\frac{2 \,{\left (B a^{2} - 5 \, A a b -{\left (B a b + 3 \, A b^{2}\right )} x\right )} \sqrt{-a b} \sqrt{x} -{\left (B a^{3} + 3 \, A a^{2} b +{\left (B a b^{2} + 3 \, A b^{3}\right )} x^{2} + 2 \,{\left (B a^{2} b + 3 \, A a b^{2}\right )} x\right )} \log \left (\frac{2 \, a b \sqrt{x} + \sqrt{-a b}{\left (b x - a\right )}}{b x + a}\right )}{8 \,{\left (a^{2} b^{3} x^{2} + 2 \, a^{3} b^{2} x + a^{4} b\right )} \sqrt{-a b}}, -\frac{{\left (B a^{2} - 5 \, A a b -{\left (B a b + 3 \, A b^{2}\right )} x\right )} \sqrt{a b} \sqrt{x} +{\left (B a^{3} + 3 \, A a^{2} b +{\left (B a b^{2} + 3 \, A b^{3}\right )} x^{2} + 2 \,{\left (B a^{2} b + 3 \, A a b^{2}\right )} x\right )} \arctan \left (\frac{a}{\sqrt{a b} \sqrt{x}}\right )}{4 \,{\left (a^{2} b^{3} x^{2} + 2 \, a^{3} b^{2} x + a^{4} b\right )} \sqrt{a b}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)^(3/2)*sqrt(x)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/(b**2*x**2+2*a*b*x+a**2)**(3/2)/x**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.278963, size = 132, normalized size = 0.84 \[ \frac{{\left (B a + 3 \, A b\right )} \arctan \left (\frac{b \sqrt{x}}{\sqrt{a b}}\right )}{4 \, \sqrt{a b} a^{2} b{\rm sign}\left (b x + a\right )} + \frac{B a b x^{\frac{3}{2}} + 3 \, A b^{2} x^{\frac{3}{2}} - B a^{2} \sqrt{x} + 5 \, A a b \sqrt{x}}{4 \,{\left (b x + a\right )}^{2} a^{2} b{\rm sign}\left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)^(3/2)*sqrt(x)),x, algorithm="giac")
[Out]